package org.permission.dao;

import org.permission.pojo.role;

import java.util.List;

public interface roleDao {

    public void add(role role);

    public void delete(Integer id);

    public void batchDelete(Integer[] ids);

    public void update(role role);

    public role getById(Integer id);

    public List<role> getAll();

    /**
     * 根据用户编号查询拥有的角色信息
     * @param adminId
     * @return
     */
    public List<role> getByadminId(int adminId);

}
